package com.zc.imooc.finaltest.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @program: final-test
 * @description: RealTimeNewsTask
 * @author: zengchen
 * @create: 2020-09-18 16:14
 **/
@Component
public class RealTimeNewsTask {

    @Scheduled(cron = "0 0 * * * ? ")
    public void getNewsFromOutside(){
        System.out.println(System.currentTimeMillis());
    }
}
